<script setup lang="ts">
import { onUpdated, onMounted, ref } from 'vue'

onMounted(() => {
  console.log(`按钮组件加载完成.`)
})
onUpdated(() => {
  console.log(`按钮组件更新完成.`)
})
const count = ref(0)
</script>

<template>
  <button @click="count++">你点击了{{ count }} 次.</button>
</template>
